package com.googlecode.jpocketmod.actions;

import com.googlecode.jpocketmod.DialogManager;
import java.awt.event.ActionEvent;
import javax.swing.Action;

/**
 *
 * @author David Sosby
 */
public class CreatePageAction extends ApplicationAction  {
	public CreatePageAction()  {
		this.putValue(Action.NAME, "Page Creator");
		this.putValue(Action.SHORT_DESCRIPTION, "Create a new Page for JPocketMod");
		this.putValue(Action.LONG_DESCRIPTION, "Create a new Page for JPocketMod");
		this.putValue(Action.ACTION_COMMAND_KEY, "c");
	}

	@Override
	protected void runAction() {
		DialogManager.getInstance().showCreatePageDialog();
	}

	public void actionPerformed(ActionEvent e) {
		runAction();
	}
}
